$OpenBSD: patch-kcalcore_CMakeLists_txt,v 1.4 2014/07/09 20:03:30 zhuk Exp $
Allow UUID library to be found even if not in default search path.
--- kcalcore/CMakeLists.txt.orig	Thu May  8 11:26:48 2014
+++ kcalcore/CMakeLists.txt	Thu May 29 16:43:42 2014
@@ -23,7 +23,7 @@ endif()
 
 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5810)
 
-include(ConfigureChecks.cmake)
+find_package(UUID)
 configure_file(config-kcalcore.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcalcore.h)
 
 #add_definitions( -DQT_NO_CAST_FROM_ASCII )
@@ -87,8 +87,9 @@ add_library(kcalcore ${LIBRARY_TYPE} ${kcalcore_LIB_SR
 generate_export_header(kcalcore)
 
 target_link_libraries(kcalcore ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${LIBICAL_LIBRARIES})
-if(HAVE_UUID_LIBRARY)
-  target_link_libraries(kcalcore "${UUID_LIBRARY}")
+if(UUID_FOUND)
+  include_directories(${UUID_INCLUDE_DIR})
+  target_link_libraries(kcalcore ${UUID_LIBRARIES})
 endif()
 
 set_target_properties(kcalcore PROPERTIES
